package com._520it.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

//销售统计
@Setter@Getter
public class SaleAccount {
    private Long id;

    private Product product;        //产品名称

    private BigDecimal salePrice;   //产品价格

    private Long saleNumber;       //产品数量
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date buyTime;           //购买时间

    private Employee employee;      //销售人员

}